package com.edu.mapper;
/*
 * @Author:princess
 * @Date 2023/11/2 11 02 9:24
 *
 */

import com.edu.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    User selectUserByName(String username);
    User selectUserByNameAndPass(@Param("username") String username,@Param("password") String password);
    User selectUserByPass(String password);

    int insertUser(User user);
    int updateUser(@Param("username") String username,@Param("oldPass") String oldPass,@Param("newPass") String newPass);
}
